package com.qianbei.user.income;

import android.os.Parcel;
import android.os.Parcelable;

import com.qianbei.common.base.Basebean;

import java.util.List;

/**
 * Created by GaoQian on 2017/11/6.
 */

public class IncomeBean extends Basebean{


    public IncomeBean(DataBean data, String msg, int status) {
        this.data = data;
        this.msg = msg;
        this.status = status;
    }

    /**
     * data : {"money":35.23,"moneylist":[{"addtime":1509939780,"id":431,"info":"注册奖励","mid":35,"shu":"+0.05","type":2},{"addtime":1509939770,"id":430,"info":"连续第1天签到奖励","mid":35,"shu":"+1.56","type":2}],"point":14205,"pointlist":[{"addtime":1509946992,"id":476,"info":"连续第7天签到奖励","mid":35,"shu":"+40","type":1},{"addtime":1509946976,"id":475,"info":"连续第6天签到奖励","mid":35,"shu":"+35","type":1},{"addtime":1509940540,"id":444,"info":"连续第5天签到奖励","mid":35,"shu":"+30","type":1},{"addtime":1509940521,"id":443,"info":"连续第4天签到奖励","mid":35,"shu":"+25","type":1},{"addtime":1509939819,"id":433,"info":"连续第1天签到奖励","mid":35,"shu":"+10","type":1},{"addtime":1509939789,"id":432,"info":"连续第2天签到奖励","mid":35,"shu":"+15","type":1},{"addtime":1509939731,"id":429,"info":"连续第3天签到奖励","mid":35,"shu":"+20","type":1},{"addtime":1509939719,"id":428,"info":"连续第2天签到奖励","mid":35,"shu":"+15","type":1},{"addtime":1509939707,"id":427,"info":"连续第1天签到奖励","mid":35,"shu":"+10","type":1},{"addtime":1509939613,"id":426,"info":"连续第4天签到奖励","mid":35,"shu":"+25","type":1},{"addtime":1509939597,"id":425,"info":"连续第3天签到奖励","mid":35,"shu":"+20","type":1},{"addtime":1509939587,"id":424,"info":"连续第2天签到奖励","mid":35,"shu":"+15","type":1},{"addtime":1509939576,"id":423,"info":"连续第1天签到奖励","mid":35,"shu":"+10","type":1}],"rate":0.06}
     * msg : 获取积分记录成功
     * status : 1
     */

    private DataBean data;
    private String msg;
    private int status;

    public IncomeBean() {
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }


    public static class DataBean {
        /**
         * money : 35.23
         * moneylist : [{"addtime":1509939780,"id":431,"info":"注册奖励","mid":35,"shu":"+0.05","type":2},{"addtime":1509939770,"id":430,"info":"连续第1天签到奖励","mid":35,"shu":"+1.56","type":2}]
         * point : 14205
         * pointlist : [{"addtime":1509946992,"id":476,"info":"连续第7天签到奖励","mid":35,"shu":"+40","type":1},{"addtime":1509946976,"id":475,"info":"连续第6天签到奖励","mid":35,"shu":"+35","type":1},{"addtime":1509940540,"id":444,"info":"连续第5天签到奖励","mid":35,"shu":"+30","type":1},{"addtime":1509940521,"id":443,"info":"连续第4天签到奖励","mid":35,"shu":"+25","type":1},{"addtime":1509939819,"id":433,"info":"连续第1天签到奖励","mid":35,"shu":"+10","type":1},{"addtime":1509939789,"id":432,"info":"连续第2天签到奖励","mid":35,"shu":"+15","type":1},{"addtime":1509939731,"id":429,"info":"连续第3天签到奖励","mid":35,"shu":"+20","type":1},{"addtime":1509939719,"id":428,"info":"连续第2天签到奖励","mid":35,"shu":"+15","type":1},{"addtime":1509939707,"id":427,"info":"连续第1天签到奖励","mid":35,"shu":"+10","type":1},{"addtime":1509939613,"id":426,"info":"连续第4天签到奖励","mid":35,"shu":"+25","type":1},{"addtime":1509939597,"id":425,"info":"连续第3天签到奖励","mid":35,"shu":"+20","type":1},{"addtime":1509939587,"id":424,"info":"连续第2天签到奖励","mid":35,"shu":"+15","type":1},{"addtime":1509939576,"id":423,"info":"连续第1天签到奖励","mid":35,"shu":"+10","type":1}]
         * rate : 0.06
         */

        private double money;
        private int point;
        private double rate;
        private List<MoneylistBean> moneylist;
        private List<PointlistBean> pointlist;

        public double getMoney() {
            return money;
        }

        public void setMoney(double money) {
            this.money = money;
        }

        public int getPoint() {
            return point;
        }

        public void setPoint(int point) {
            this.point = point;
        }

        public double getRate() {
            return rate;
        }

        public void setRate(double rate) {
            this.rate = rate;
        }

        public List<MoneylistBean> getMoneylist() {
            return moneylist;
        }

        public void setMoneylist(List<MoneylistBean> moneylist) {
            this.moneylist = moneylist;
        }

        public List<PointlistBean> getPointlist() {
            return pointlist;
        }

        public void setPointlist(List<PointlistBean> pointlist) {
            this.pointlist = pointlist;
        }

        public static class MoneylistBean implements Parcelable {
            /**
             * addtime : 1509939780
             * id : 431
             * info : 注册奖励
             * mid : 35
             * shu : +0.05
             * type : 2
             */

            private int addtime;
            private int id;
            private String info;
            private int mid;
            private String shu;
            private int type;

            public MoneylistBean() {
            }

            public MoneylistBean(int addtime, int id, String info, int mid, String shu, int type) {
                this.addtime = addtime;
                this.id = id;
                this.info = info;
                this.mid = mid;
                this.shu = shu;
                this.type = type;
            }

            protected MoneylistBean(Parcel in) {
                addtime = in.readInt();
                id = in.readInt();
                info = in.readString();
                mid = in.readInt();
                shu = in.readString();
                type = in.readInt();
            }

            public static final Creator<MoneylistBean> CREATOR = new Creator<MoneylistBean>() {
                @Override
                public MoneylistBean createFromParcel(Parcel in) {
                    return new MoneylistBean(in);
                }

                @Override
                public MoneylistBean[] newArray(int size) {
                    return new MoneylistBean[size];
                }
            };

            public int getAddtime() {
                return addtime;
            }

            public void setAddtime(int addtime) {
                this.addtime = addtime;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getInfo() {
                return info;
            }

            public void setInfo(String info) {
                this.info = info;
            }

            public int getMid() {
                return mid;
            }

            public void setMid(int mid) {
                this.mid = mid;
            }

            public String getShu() {
                return shu;
            }

            public void setShu(String shu) {
                this.shu = shu;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(addtime);
                dest.writeInt(id);
                dest.writeString(info);
                dest.writeInt(mid);
                dest.writeString(shu);
                dest.writeInt(type);
            }
        }

        public static class PointlistBean implements Parcelable {
            /**
             * addtime : 1509946992
             * id : 476
             * info : 连续第7天签到奖励
             * mid : 35
             * shu : +40
             * type : 1
             */

            private int addtime;
            private int id;
            private String info;
            private int mid;
            private String shu;
            private int type;

            public PointlistBean() {
            }

            public PointlistBean(int addtime, int id, String info, int mid, String shu, int type) {
                this.addtime = addtime;
                this.id = id;
                this.info = info;
                this.mid = mid;
                this.shu = shu;
                this.type = type;
            }


            protected PointlistBean(Parcel in) {
                addtime = in.readInt();
                id = in.readInt();
                info = in.readString();
                mid = in.readInt();
                shu = in.readString();
                type = in.readInt();
            }

            public static final Creator<PointlistBean> CREATOR = new Creator<PointlistBean>() {
                @Override
                public PointlistBean createFromParcel(Parcel in) {
                    return new PointlistBean(in);
                }

                @Override
                public PointlistBean[] newArray(int size) {
                    return new PointlistBean[size];
                }
            };

            public int getAddtime() {
                return addtime;
            }

            public void setAddtime(int addtime) {
                this.addtime = addtime;
            }

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getInfo() {
                return info;
            }

            public void setInfo(String info) {
                this.info = info;
            }

            public int getMid() {
                return mid;
            }

            public void setMid(int mid) {
                this.mid = mid;
            }

            public String getShu() {
                return shu;
            }

            public void setShu(String shu) {
                this.shu = shu;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeInt(addtime);
                dest.writeInt(id);
                dest.writeString(info);
                dest.writeInt(mid);
                dest.writeString(shu);
                dest.writeInt(type);
            }
        }
    }
}
